Skip to content

docs(client): repair model setup examples against the current SDK - #6243

Open
Yzzz88 wants to merge 1 commit into
Tencent:mainfrom
Yzzz88:fix/client-model-setup-examples
Open

Yzzz88 wants to merge 1 commit into
Tencent:mainfrom
Yzzz88:fix/client-model-setup-examples

Conversation

@Yzzz88

@Yzzz88 Yzzz88 commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Description

Following either SDK README's model-management example fails to compile: ModelTypeChat and ModelSourceInternal do not exist. The parameters also show sampling settings instead of the connection configuration needed to create a remote model.

Update both language examples to the current KnowledgeQA/remote constants and show the generic provider, base URL, and API key. Separate the remote model name from its display name and identify the placeholders users must replace. Remove the misleading default-model flag from this setup example.

Testing

Extracted both original README blocks into a temporary Go module using the checked-out SDK: compilation failed with the two undefined constants in each language. Both updated blocks compile and execute against an HTTP transport fixture. The fixture verifies their actual POST requests contain the current model type/source and provider connection settings, then returns create/list responses.

No live model credential or backend service was used. No permanent test or production-code change was added for this documentation repair. git diff --check passes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant